filter

inline fun filter(predicate: (R) -> Boolean): Either<L, R>?

Returns the same Right if the predicate is satisfied for the value. Otherwise returns null.

Return

The same Right if the predicate is satisfied for the value. Otherwise returns null.

Since

1.3

Parameters

predicate

Predicate function.